package com.kx.core.dawn.dbs.entity;

import com.genchance.core.dawn.entity.BaseBean;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * 文件名：GatewayEntity.java
 * <p>
 * 功能：GatewayEntity文件
 * <p>
 * 作者：Builded by DawnBuildTools.
 * <p>
 * 版权：(c)栗子游戏
 */
public class GatewayEntity extends BaseBean implements Cloneable {


    private static final long serialVersionUID = 1L;

    /**
     * 网关id
     */
    private String gateId;

    /**
     * 网关ip
     */
    private String ip;

    /**
     * 网关port
     */
    private String port;

    /**
     * 网关负载
     */
    private int count;

    /**
     * 汇报时间
     */
    private String time;

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getGateId() {
        return gateId;
    }

    public void setGateId(String gateId) {
        this.gateId = gateId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public GatewayEntity clone() throws CloneNotSupportedException {

        return (GatewayEntity) super.clone();
    }

    @Override
    @SuppressWarnings("unchecked")
    public <T extends BaseBean> T parseEntity(ResultSet rest)
            throws SQLException {
        GatewayEntity entity = new GatewayEntity();
        return (T) entity;
    }
}